﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PageMaster.Master" Inherits="System.Web.Mvc.ViewPage<GrupyzServices.BdAccess.DadosCliente>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SignedIn
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

    <% Html.EnableClientValidation(); %>
    
    

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Preencha os dados em falta</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nome) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nome) %>
                <%: Html.ValidationMessageFor(model => model.Nome) %>
            </div>
            
            <div class="editor-field">
                <%: Html.EditorFor(model => model.DataNascimento, String.Format("{0:g}", Model.DataNascimento)) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Sexo) %>
            </div>
            <div class="editor-field">
	            <%= Html.RadioButtonFor(model => model.Sexo, "M")%> Masculino
	            <%= Html.RadioButtonFor(i => Model.Sexo, "F")%> Feminino
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Email) %>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Telefone) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Telefone, new { maxlength = "9" })%>
                <%: Html.ValidationMessageFor(model => model.Telefone) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Localidade) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Localidade) %>
                <%: Html.ValidationMessageFor(model => model.Localidade) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Morada) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Morada) %>
                <%: Html.ValidationMessageFor(model => model.Morada) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CodPostal) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CodPostal) %>
                <%: Html.ValidationMessageFor(model => model.CodPostal) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

